package com.tanhua.dubbo.api.mongo;

import com.tanhua.domain.mongo.UserLocation;
import com.tanhua.vo.PageResult;
import com.tanhua.vo.UserLocationVo;
import org.springframework.data.mongodb.core.geo.GeoJsonPoint;

import java.util.List;
import java.util.Map;

public interface UserLocationApi {
    void saveLocation(Long userId, Double longitude, Double latitude, String addrStr);

    List<UserLocationVo> search(Long userId, Integer distance);

    Map<String,Double> queryById(Long id);

    /*
    分页查询用户位置
    by Huo
     */
    PageResult queryByPage(Integer page, Integer pageSize);
}
